<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="subnav">
  <h2 class="title-1 line-x f14 fb blue lh28">模型管理--{$modelinfo.name}模型字段管理</h2>
  <div class="content-menu ib-a blue line-x">
  <a class="add fb" href="{:U("Sitemodel_field/add",array("modelid"=>$modelid))}"><em>添加字段</em></a> 　
  <a class="on" href="{:U("Sitemodel_field/index",array("modelid"=>$modelid))}"><em>管理模型字段</em></a><span>|</span>
  <a href="{:U("Sitemodel_field/priview",array("modelid"=>$modelid))}" target="_blank"><em>预览模型</em></a> 
  </div>
</div>
<div class="pad-lr-10">
  <form name="myform" action="{:U("Sitemodel_field/listorder")}" method="post">
    <div class="table-list">
      <table width="100%" cellspacing="0" >
        <thead>
          <tr>
            <th width="70">排序</th>
            <th width="90">字段名</th>
            <th width="100">别名</th>
            <th width="100">类型</th>
            <th width="100">是否主表字段</th>
            <th width="50">必填</th>
            <th width="50">搜索</th>
            <th width="50">排序</th>
            <th width="50">投稿</th>
            <th >管理操作</th>
          </tr>
        </thead>
        <tbody class="td-line">
        <volist name="data" id="vo">
          <tr>
            <td align='center' width='70'><input name='listorders[{$vo.fieldid}]' type='text' size='3' value='{$vo.listorder}' class='input-text-c'></td>
            <td width='90'>{$vo.field}</td>
            <td width="100">{$vo.name}</td>
            <td width="100" align='center'>{$vo.formtype}</td>
            <td width="50" align='center'><font color="red"><if condition="$vo['issystem'] eq 1">√<else /> ╳</if></font></td>
            <td width="50" align='center'><font color="red"><if condition="$vo['minlength'] eq 1">√<else /> ╳</if></font></td>
            <td width="50" align='center'><font color="red"><if condition="$vo['issearch'] eq 1">√<else /> ╳</if></font></td>
            <td width="50" align='center'><font color="blue"><if condition="$vo['isorder'] eq 1">√<else /> ╳</if></font></td>
            <td width="50" align='center'><font color="red"><if condition="$vo['isadd'] eq 1">√<else /> ╳</if></font></td>
            <td align='center'>
            <a href="{:U("Sitemodel_field/edit",array("fieldid"=>$vo['fieldid'],"modelid"=>$vo['modelid']))}">修改</a> | 
            <if condition=" in_array($vo['field'],$forbid_fields) ">
            <font color="#BEBEBE"> 禁用 </font>|
            <else />
                 <if condition=" $vo['disabled'] eq 0 ">
                 <a href="{:U("Sitemodel_field/disabled",array("fieldid"=>$vo['fieldid'],"modelid"=>$vo['modelid'],"disabled"=>0))}">禁用</a> |
                 <else />
                 <a href="{:U("Sitemodel_field/disabled",array("fieldid"=>$vo['fieldid'],"modelid"=>$vo['modelid'],"disabled"=>1))}"><font color="#FF0000">启用</font></a> |
                 </if>
            </if>
            <if condition=" in_array($vo['field'],$forbid_delete) ">
            <font color="#BEBEBE"> 删除</font>
            <else />
            <a href="javascript:confirmurl('{:U("Sitemodel_field/delete",array("fieldid"=>$vo['fieldid'],"modelid"=>$vo['modelid']))}','确认要删除 『 {$vo.name} 』 吗？')">删除</a>
            </if>
            </td>
          </tr>
        </volist>
        </tbody>
      </table>
      <div class="btn">
        <input type="submit" class="button" name="dosubmit" value="排序" />
      </div>
    </div>
  </form>
</div>
</body>
</html>